<?
require_once('ConverterBase.php');

class BooleanConverter extends ConverterBase {
	protected function toDatatype($string) {
		return !empty($string);
	}
	protected function toString($object) {
		return $object ? '1' : '0';
	}
}
